package com.njlime.cms.entities;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.njlime.core.base.entities.BaseEntityPlus;
import com.njlime.core.web.validation.RegexType;
import com.njlime.core.web.validation.annotation.Validate;

/**
 * 标签实体类
 *
 * @since 
 */
@Entity
@Table(name = "t_label")
public class Label extends BaseEntityPlus{
	@Validate(description = "标签名称", nullable = false)
    private String name; // 标签名称
    private Integer unit_id; // 单位ID

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getUnit_id() {
        return unit_id;
    }

    public void setUnit_id(Integer unit_id) {
        this.unit_id = unit_id;
    }
}